<!--
Delete class pop-up window.

@author Chad Estioco
@version Second Semester, AY 2010-2011
-->
<html>
	<head>
		<title>GradeGrid - Delete Class</title>
		<link rel="stylesheet" type="text/css" href="new.css" />
	</head>
	<body>
	<?php include ("write_functions.php");?>
	
	<?php connect('localhost','root','','gradegriddatabase');?>
	<?php 	
		$classid = $_GET['in'];
		mysql_query("DELETE FROM class WHERE class_id = '$classid'");
		//TODO: Also delete everything related to this class...
	mysql_close();?>
	
	<b> You have successfully deleted 
	<?php echo "$class_name";?>
	</b>
	
	
	</body>
</html>